.class public Lcom/estrongs/android/ui/dialog/w;
.super Ljava/lang/Object;
.source "EditNameDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/dialog/w$d;,
        Lcom/estrongs/android/ui/dialog/w$e;
    }
.end annotation


# instance fields
.field private a:Lcom/estrongs/android/ui/dialog/q;

.field private b:Landroid/content/Context;

.field private c:Lcom/estrongs/android/ui/dialog/w$e;

.field private d:Landroid/widget/EditText;

.field private e:Landroid/widget/ListView;

.field private f:Lcom/estrongs/android/ui/dialog/w$d;

.field private g:Landroid/widget/CheckBox;

.field private h:I

.field private i:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation
.end field

.field private j:Lcom/estrongs/fs/g;


# direct methods
.method private constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput v0, p0, Lcom/estrongs/android/ui/dialog/w;->h:I

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/w;->b:Landroid/content/Context;

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/w;->c()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    const/4 v0, 0x1

    .line 5
    invoke-direct {p0, p1, p2, p3, v0}, Lcom/estrongs/android/ui/dialog/w;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Z)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;)V"
        }
    .end annotation

    .line 6
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 7
    iput v0, p0, Lcom/estrongs/android/ui/dialog/w;->h:I

    .line 8
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/w;->b:Landroid/content/Context;

    .line 9
    iput-object p4, p0, Lcom/estrongs/android/ui/dialog/w;->i:Ljava/util/List;

    .line 10
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/w;->c()V

    .line 11
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/dialog/w;->b(Ljava/lang/String;)V

    .line 12
    invoke-virtual {p0, p3}, Lcom/estrongs/android/ui/dialog/w;->a(Ljava/lang/String;)V

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/w;->g:Landroid/widget/CheckBox;

    const/16 p2, 0x8

    invoke-virtual {p1, p2}, Landroid/widget/CheckBox;->setVisibility(I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Z)V
    .locals 0

    .line 14
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/w;-><init>(Landroid/content/Context;)V

    .line 15
    invoke-virtual {p0, p2}, Lcom/estrongs/android/ui/dialog/w;->b(Ljava/lang/String;)V

    .line 16
    invoke-virtual {p0, p3}, Lcom/estrongs/android/ui/dialog/w;->a(Ljava/lang/String;)V

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/w;->g:Landroid/widget/CheckBox;

    if-eqz p4, :cond_0

    const/4 p2, 0x0

    goto :goto_0

    :cond_0
    const/16 p2, 0x8

    :goto_0
    invoke-virtual {p1, p2}, Landroid/widget/CheckBox;->setVisibility(I)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/w;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/ui/dialog/w;->h:I

    return p1
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/w;Lcom/estrongs/fs/g;)Lcom/estrongs/fs/g;
    .locals 0

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/w;->j:Lcom/estrongs/fs/g;

    return-object p1
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/w;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/w;->i:Ljava/util/List;

    return-object p0
.end method

.method private b()I
    .locals 4

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->b:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const/4 v1, 0x0

    const v2, 0x7f0c01cf

    const/4 v3, 0x0

    invoke-virtual {v0, v2, v3, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v0

    .line 3
    invoke-static {v1, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v2

    .line 4
    invoke-static {v1, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v1

    .line 5
    invoke-virtual {v0, v2, v1}, Landroid/view/View;->measure(II)V

    .line 6
    invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I

    move-result v0

    return v0
.end method

.method static synthetic b(Lcom/estrongs/android/ui/dialog/w;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/ui/dialog/w;->h:I

    return p0
.end method

.method static synthetic c(Lcom/estrongs/android/ui/dialog/w;)Landroid/widget/EditText;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/w;->d:Landroid/widget/EditText;

    return-object p0
.end method

.method private c()V
    .locals 4

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->b:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c00e8

    const/4 v2, 0x0

    .line 3
    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    const v1, 0x7f090558

    .line 4
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/EditText;

    iput-object v1, p0, Lcom/estrongs/android/ui/dialog/w;->d:Landroid/widget/EditText;

    .line 5
    new-instance v1, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/w;->b:Landroid/content/Context;

    invoke-direct {v1, v2}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 6
    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/view/View;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v2, Lcom/estrongs/android/ui/dialog/w$b;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/dialog/w$b;-><init>(Lcom/estrongs/android/ui/dialog/w;)V

    const v3, 0x7f11029e

    invoke-virtual {v1, v3, v2}, Lcom/estrongs/android/ui/dialog/q$n;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    new-instance v2, Lcom/estrongs/android/ui/dialog/w$a;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/dialog/w$a;-><init>(Lcom/estrongs/android/ui/dialog/w;)V

    const v3, 0x7f110299

    .line 7
    invoke-virtual {v1, v3, v2}, Lcom/estrongs/android/ui/dialog/q$n;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 8
    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object v1

    iput-object v1, p0, Lcom/estrongs/android/ui/dialog/w;->a:Lcom/estrongs/android/ui/dialog/q;

    const v1, 0x7f09082f

    .line 9
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Lcom/estrongs/android/ui/dialog/w;->e:Landroid/widget/ListView;

    const v1, 0x7f090831

    .line 10
    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 11
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/w;->b:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f1106db

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v2, 0x7f090a5c

    .line 12
    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->g:Landroid/widget/CheckBox;

    .line 13
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->i:Ljava/util/List;

    if-eqz v0, :cond_0

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 14
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/w;->e()V

    .line 15
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/w;->d()V

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->e:Landroid/widget/ListView;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    .line 17
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_0

    .line 18
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->e:Landroid/widget/ListView;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/ListView;->setVisibility(I)V

    .line 19
    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setVisibility(I)V

    .line 20
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->g:Landroid/widget/CheckBox;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    :goto_0
    return-void
.end method

.method static synthetic d(Lcom/estrongs/android/ui/dialog/w;)Landroid/widget/CheckBox;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/w;->g:Landroid/widget/CheckBox;

    return-object p0
.end method

.method private d()V
    .locals 3

    .line 2
    new-instance v0, Lcom/estrongs/android/ui/dialog/w$d;

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/w;->b:Landroid/content/Context;

    const/4 v2, 0x0

    invoke-direct {v0, p0, v1, v2}, Lcom/estrongs/android/ui/dialog/w$d;-><init>(Lcom/estrongs/android/ui/dialog/w;Landroid/content/Context;Lcom/estrongs/android/ui/dialog/w$a;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->f:Lcom/estrongs/android/ui/dialog/w$d;

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/w;->e:Landroid/widget/ListView;

    invoke-virtual {v1, v0}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->e:Landroid/widget/ListView;

    new-instance v1, Lcom/estrongs/android/ui/dialog/w$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/w$c;-><init>(Lcom/estrongs/android/ui/dialog/w;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->i:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/w;->b()I

    move-result v1

    const/4 v2, 0x3

    if-le v0, v2, :cond_0

    const/high16 v0, 0x40600000    # 3.5f

    int-to-float v1, v1

    mul-float v1, v1, v0

    float-to-int v0, v1

    goto :goto_0

    :cond_0
    mul-int v0, v0, v1

    .line 7
    :goto_0
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/w;->e:Landroid/widget/ListView;

    invoke-virtual {v1}, Landroid/widget/ListView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 8
    iput v0, v1, Landroid/view/ViewGroup$LayoutParams;->height:I

    :cond_1
    return-void
.end method

.method static synthetic e(Lcom/estrongs/android/ui/dialog/w;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/w;->b:Landroid/content/Context;

    return-object p0
.end method

.method private e()V
    .locals 3

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->K()Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    .line 3
    :goto_0
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/w;->i:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_1

    .line 4
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/w;->i:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/g;

    invoke-interface {v2}, Lcom/estrongs/fs/g;->getPath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 5
    iput v1, p0, Lcom/estrongs/android/ui/dialog/w;->h:I

    goto :goto_1

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    :goto_1
    return-void
.end method

.method static synthetic f(Lcom/estrongs/android/ui/dialog/w;)Lcom/estrongs/android/ui/dialog/w$e;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/w;->c:Lcom/estrongs/android/ui/dialog/w$e;

    return-object p0
.end method

.method static synthetic g(Lcom/estrongs/android/ui/dialog/w;)Lcom/estrongs/fs/g;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/w;->j:Lcom/estrongs/fs/g;

    return-object p0
.end method

.method static synthetic h(Lcom/estrongs/android/ui/dialog/w;)Lcom/estrongs/android/ui/dialog/w$d;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/w;->f:Lcom/estrongs/android/ui/dialog/w$d;

    return-object p0
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 8
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method

.method public a(Lcom/estrongs/android/ui/dialog/w$e;)V
    .locals 0

    .line 7
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/w;->c:Lcom/estrongs/android/ui/dialog/w$e;

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->d:Landroid/widget/EditText;

    if-eqz v0, :cond_0

    .line 5
    invoke-virtual {v0, p1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 6
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/w;->d:Landroid/widget/EditText;

    invoke-virtual {p1}, Landroid/widget/EditText;->selectAll()V

    :cond_0
    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 1

    .line 7
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/w;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/dialog/q;->setTitle(Ljava/lang/CharSequence;)V

    return-void
.end method
